package com.boboPlanet.user.listener;

import com.boboPlanet.user.component.PlanetUserEmailLoginEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @Description: TODO 星球用户邮件登录监听器
 * @Author: mis_wu
 * @Date: 2023/7/29
 * @Company Login
 **/
@Component
@Slf4j
public class PlanetUserEmailLoginListener {

    @EventListener
    public void userEmailLogin(PlanetUserEmailLoginEvent event){
        log.info("welcome use email login");
        String userEmail = event.getUserEmail();
        //todo: 发送邮件验证码

    }
}
